layui.use(['form','layer','jquery'],function () {
    var form = layui.form;
    var layer = layui.layer;
    var $ = layui.$;

    //高级检索（课程名字、用户名字、用户手机号、订单号）
    form.on('submit(search)',function (data) {
        var search = data.field;
        $.ajax({
            url: '/SyUserOrder/getAcceptedUnsubscribeOrdersByNameAccountPhoneNum',
            data: search,
            type: 'post',
            dataType: 'json',
            success: function (data) {
                var orders = data.data;
                parent.ordersRender(orders.data)
                var layer = parent.layer;
                layer.close(layer.index);
            }
        });
        return false;
    });
    $('#cancel').click(function () {
        var layer = parent.layer;
        layer.close(layer.index)
    });
})